<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改活动信息管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-activity-edit" th:object="${activity}">
            <input name="actId" th:field="*{actId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">活动编号：</label>
                <div class="col-sm-8">
                    <input name="actNo" th:field="*{actNo}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">活动名称：</label>
                <div class="col-sm-8">
                    <input name="actName" th:field="*{actName}" class="form-control" type="text" required>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">活动类型：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <select name="actType" class="form-control m-b" th:with="type=${@dict.getType('sys_oper_dec_type')}" required>-->
<!--                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{actType}"></option>-->
<!--                    </select>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">活动状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_oper_activity_status')}">
                        <input type="radio" th:id="${'actStatus_' + dict.dictCode}" name="actStatus" th:value="${dict.dictValue}" th:field="*{actStatus}" required>
                        <label th:for="${'actStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/activity";
        $("#form-activity-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-activity-edit').serialize());
            }
        }
    </script>
</body>
</html>